import Vue from "vue"
import  Router from "vue-router"


//这里导入可以让用户访问的组件
// vue 中提供了@符号,表示src路径
import Home from "@/components/Home"

//导入需要注册路由的组件
import Home from "../components/Home";
import Login from "../components/Login";

Vue.use(Router);

export default new Router({
  //设置路由模式为”history“,去掉默认的#
  mode:"history",
  routes:[
    //路由列表
    {
      path:"/",
      name:"Home",
      component:Home
    },
    {
      path:'Login',
      name:'/user/login/',
      component: Login,
    }
  ]
});






